<?php

class EventCalendar extends CWidget {

    public function run() {
	/*
	 * get events
	 */
	$modelEvent = Event::model()->findAll(array(
	    'order' => 'id desc',
	    'limit' => Event::PAGE_SIZE
	));
	$this->render('eventCalendar', array("modelEvent" => $modelEvent));
    }

}

